import {deepCopy} from './util'
const pageConfig ={
    "css":
        {
            "top": "100px", //覆盖为实际位置
            "left": "0px", //覆盖为实际位置
            "zIndex": 1, //一页有多个组件时需要递增
            "width": "320px", //覆盖为实际大小
            "height": "400px", //覆盖为实际大小
            "fontSize": 24,
            "lineHeight": 1,
            "isAnimation": 0,
            "listMaxNum": 0,
            "relationComp": "",
            "isSprites": 0,
            "isBackBtn": 0,
            "cutNum": 1,
            "backgroundColor": "",
            "opacity": 1,
            "color": "#676767",
            "buttonColor": "rgba(68,203,131,1)",
            "borderWidth": 0,
            "borderStyle": "solid",
            "borderColor": "rgba(0,0,0,1)",
            "paddingBottom": 0,
            "paddingTop": 0,
            "borderRadius": "0px",
            "transform": "rotateZ(0deg)",
            "textAlign": "left",
            "maxPrivVal": null,
            "minPrivVal": null,
            "isCursor": false,
            "isClose": false,
            "isCallback": false,
            "borderRadiusPerc": 0,
            "setting":
                {
                    "borderImageRepeat": "round",
                    "borderImageOutset": 1
                },
            "borderBottomRightRadius": "0px",
            "borderBottomLeftRadius": "0px",
            "borderTopRightRadius": "0px",
            "borderTopLeftRadius": "0px",
            "boxShadow": "0px 0px 0px rgba(0,0,0,0.5)",
            "boxShadowDirection": 0,
            "boxShadowSize": 0
        },
    "id": 2973443872, //覆盖为组件id
    "num": 1, //覆盖为实际页数(从1开始)
    "pageId": 128349, //覆盖为页id
    "properties":{},
    "sceneId": 8895787, //覆盖为场景id
    "title": null,
    "type": "2", //覆盖为组件类型,
};

const upConfig ={
    "elements":[
        {
            "accessSlideUrl":"/ppt/123/slide-0-1566299249320.png",
            "hashShape":false,
            "pageNum":1,
            "slideUrl":"/mydata/mongo-images/ppt/123/slide-0-1566299249320.png"
        },
        {
            "accessSlideUrl":"/ppt/123/slide-1-1566299251353.png",
            "hashShape":false,
            "pageNum":2,
            "slideUrl":"/mydata/mongo-images/ppt/123/slide-1-1566299251353.png"
        },{
            "accessSlideUrl":"/ppt/123/slide-2-1566299251585.png",
            "hashShape":false,
            "pageNum":3,
            "slideUrl":"/mydata/mongo-images/ppt/123/slide-2-1566299251585.png"
        },{
            "accessSlideUrl":"/ppt/123/slide-3-1566299252074.png",
            "hashShape":false,
            "pageNum":4,
            "slideUrl":"/mydata/mongo-images/ppt/123/slide-3-1566299252074.png"
        },{
            "accessSlideUrl":"/ppt/123/slide-4-1566299252275.png",
            "hashShape":false,
            "pageNum":5,
            "slideUrl":"/mydata/mongo-images/ppt/123/slide-4-1566299252275.png"
        },{
            "accessSlideUrl":"/ppt/123/slide-5-1566299252697.png",
            "hashShape":false,
            "pageNum":6,
            "slideUrl":"/mydata/mongo-images/ppt/123/slide-5-1566299252697.png"
        },{
            "accessSlideUrl":"/ppt/123/slide-6-1566299253287.png",
            "hashShape":false,
            "pageNum":7,
            "slideUrl":"/mydata/mongo-images/ppt/123/slide-6-1566299253287.png"
        },{
            "accessSlideUrl":"/ppt/123/slide-7-1566299264782.png",
            "hashShape":false,
            "pageNum":8,
            "slideUrl":"/mydata/mongo-images/ppt/123/slide-7-1566299264782.png"
        },{
            "accessSlideUrl":"/ppt/123/slide-8-1566299274134.png",
            "hashShape":false,
            "pageNum":9,
            "slideUrl":"/mydata/mongo-images/ppt/123/slide-8-1566299274134.png"
        },{
            "accessSlideUrl":"/ppt/123/slide-9-1566299276602.png",
            "hashShape":false,
            "pageNum":10,
            "slideUrl":"/mydata/mongo-images/ppt/123/slide-9-1566299276602.png"
        },{
            "accessSlideUrl":"/ppt/123/slide-10-1566299278575.png",
            "hashShape":false,
            "pageNum":11,
            "slideUrl":"/mydata/mongo-images/ppt/123/slide-10-1566299278575.png"
        }],
    "sceneId":123
}

let configMerge=function(config) {
    return _.extend({},deepCopy(pageConfig),config)
};

export {configMerge, upConfig}